home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Games Machine 80
/
XENIATGM80.iso
/
Goodies
/
Blood 2
/
Source
/
data.z
/
WreckingBall.h
< prev
next >
Wrap
C/C++ Source or Header
|
1999-04-02
|
817b
|
45 lines
#ifndef __WRECKINGBALL_H__
#define __WRECKINGBALL_H__
#include "cpp_engineobjects_de.h"
#include "cpp_server_de.h"
#include "B2BaseClass.h"
#include "Destructable.h"
class WreckingBall : public B2BaseClass
{
public :
WreckingBall();
virtual ~WreckingBall();
protected :
virtual DDWORD EngineMessageFn(DDWORD messageID, void *pData, DFLOAT lData);
void FirstUpdate();
private :
DBOOL InitialUpdate(DVector *pMovement);
DBOOL Update(DVector *pMovement);
void ComputeAttachPoint(DVector* pvAttachPoint);
DBOOL DrawChain(DVector* pvAttachPoint);
CDestructable m_damage;
DVector m_vLastAttachPoint;
DVector m_vMomentum;
DFLOAT m_fDamage;
DBOOL m_bFirstUpdate;
HOBJECT m_hCrane;
HOBJECT m_hChain;
};
#endif // __WRECKINGBALL_H__